
<?php $this->headScript()->appendFile($this->JS_PATH . 'form_appointment.js'); ?>
<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<div class="clearfix"></div>
<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold">Add appointment</span></h3>
    </div>
    <div class="row">

        <div class="col-md-12">
            <div class="grid simple">
                <div class="grid-title">


                </div>
                <div class="grid-body ">
                    <div class="row">


                        <?php if (count($this->errorMessageArray) > 0): ?>
                            <div class="alert alert-error">
                                <?php foreach ($this->errorMessageArray as $erroValue): ?>

                                    <div class="text-left">
                                        <i class="icon-remove-sign"></i>
                                        <?php echo $erroValue; ?>
                                    </div>

                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

                        <form id="commentForm" action="" method="POST" enctype="multipart/form-data">
                            <div class="">
                             
                                <div class="row form-row">
                                    <div class="col-md-6">
                                        <label class="form-label">Client</label>
                                        <?php echo $this->form->app_member_id; ?>
                                    </div>
                                </div>
                                
                                <div class="row form-row">
                                    <div class="col-md-6">
                                        <label class="form-label">Date</label>
                                        <?php echo $this->form->app_date; ?>
                                    </div>
                                </div>
                                
                                 <div class="row form-row">
                                    <div class="col-md-6">
                                        <label class="form-label">Note</label>
                                        <?php echo $this->form->app_note; ?>
                                    </div>
                                </div>
                                
                                <div class="row form-row">
                                    <div class="col-md-6">
                                        <?php if ($this->mode == 'Edit'): ?>
                                        <input type="submit" value="Edit Appointment" class="submitfrmbtn btn btn-primary" name="Edit Appointment"/>
                                        <?php else: ?>
                                            <input type="submit" value="Add Appointment" class="submitfrmbtn  btn btn-primary" name="Add Appointment"/>
                                        <?php endif; ?>
                                    </div>
                                </div>
                                
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END PAGE -->